import Vue from 'vue'
import Router from 'vue-router'
import Home from '../view/home/Home.vue'
import Category from '../view/category/Category.vue'
import Profile from '../view/profile/Profile.vue'
import Cart from '../view/cart/Cart.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '',
      redirect: '/home'
    },
    {
      path: '/home',
      name: 'Home',
      component: Home
    },
    {
      path: '/cart',
      name: 'Cart',
      component: Cart
    },
    {
      path: '/profile',
      name: 'Profile',
      component: Profile
    },
    {
      path: '/category',
      name: 'Category',
      component: Category
    }
  ]
})
